home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / ARCHIVE / UNP331.ZIP;1 / UNP.DOC < prev    next >
Encoding:
Text File  |  1994-04-15  |  29.9 KB  |  762 lines

  1.           ⁄ø  ¬ ⁄¬ƒø ¬ ¬¬ƒƒø       ⁄ƒƒ¬ø     ⁄ƒƒ¬ø  ⁄ø
  2.           ≥≥  ≥ ≥≥ ≥ ≥ ≥≥  ≥          ≥≥        ≥≥ ƒ¥≥
  3.           ≥≥  ≥ ≥≥ ≥ ≥ ≥√ƒƒŸ        ƒƒ¥≥      ƒƒ¥≥  ≥≥
  4.           ≥≥  ≥ ≥≥ ≥ ≥ ≥≥             ≥≥ ⁄ø     ≥≥  ≥≥
  5.           ¿¡ƒƒŸ ¿Ÿ ¿ƒŸ ¿Ÿ          ¿ƒƒ¡Ÿ ¿Ÿ  ¿ƒƒ¡Ÿ ƒ¡¡ƒ
  6.          ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
  7.  
  8.  
  9.                 Written by Ben Castricum
  10.  
  11.                  April 15, 1994
  12.  
  13.  
  14.        This is the documentation belonging to and explaining the use of:
  15.  
  16.                    UNP V3.31
  17.               Compressed executable file expander
  18.  
  19.  
  20.    TOPICS covered in this document:
  21.  
  22.      DISCLAIMER
  23.      PURPOSE OF UNP
  24.      REQUIREMENTS
  25.      GENERAL INFO
  26.      HOW TO USE UNP
  27.      UNP IN ACTION
  28.      MESSAGES
  29.      WHAT UNP CAN HANDLE
  30.      NOTES ON COMPRESSORS
  31.      ERRORLEVEL VALUES
  32.      WHERE TO FIND UNP
  33.      HOW TO REGISTER
  34.      CONTACTING ME
  35.  
  36.  
  37.  
  38. DISCLAIMER:
  39. -----------
  40. Although UNP has been tested on several systems, I cannot guarantee that
  41. UNP will be without bugs.  Therefore, I do not take responsibility for any
  42. damage directly or indirectly caused by UNP as a result of known or
  43. unknown errors in it.
  44.  
  45.  
  46.  
  47. PURPOSE OF UNP:
  48. ---------------
  49. UNP tries to reverse the action which programs like PKLITE and LZEXE
  50. perform.  In case you don't know, those programs use data compression on
  51. executable files.  Yet they leave these compressed files in a state such
  52. that they can still be normally executed.  This is great if you want to
  53. save disk space, but it has its disadvantages.  Anyone can now spread a
  54. virus; just compress an infected file and the virus is invisible!
  55. Debugging also becomes a lot more difficult since the code has become
  56. unreadable.  These are the primary reasons behind my writing UNP.  I
  57. could make up some story about loading/decompressing time, but we are
  58. probably talking about a few 100ths of a second.  Well, at least I don't
  59. notice any delay on my 66Mhz...
  60.  
  61. Not only can UNP expand compressed executable files, it is also able to
  62. remove other kinds of routines from such programs.  For instance,
  63. Central Point's Anti-virus (tm) Immunize codes can be safely removed.
  64. Though this removal is currently limited to only a few routines, in the
  65. future this ability might be greatly expanded.
  66.  
  67.  
  68.  
  69. REQUIREMENTS:
  70. -------------
  71. To run UNP you need at least a 8086 microprocessor.  However if you want
  72. to take full advantage of UNP, MS-DOS 5.0 (or higher) is recommended since
  73. UNP tries to allocate UMBs.  Lower versions of DOS will work without much
  74. difference since UNP only uses base memory and UMBs.  It requires about
  75. 15k of memory, with the additional amount of memory required depending on
  76. the program being processed.
  77.  
  78.  
  79.  
  80. GENERAL INFO:
  81. -------------
  82. Before you start using UNP, I would like to point out a few things which
  83. you might take into consideration.
  84.  
  85. Compressed EXE files containing an overlay may not work correctly after
  86. they have been decompressed.  Decompression expands the code size of the
  87. EXE file which also means that the overlay moves up.  Some programs do not
  88. check where the overlay currently is but just use a constant to get the
  89. overlay.  If this is the case, most anything can happen.
  90.  
  91. When you use UNP to convert a file to another structure, please take
  92. into consideration that the converted program never runs under the exact
  93. same conditions as it did before.  Though these differences are likely
  94. not to cause any problems with most programs, there are always programs
  95. which expect just that what is changed by conversion.
  96.  
  97. One way to protect yourself against problems caused by such problems is
  98. to use UNP's -b which is .BAK backup file creation option to create a
  99. copy of the original compressed file.  If, after running the
  100. uncompressed program you find an error, you can simply delete the bad
  101. copy and rename the .BAK file.
  102.  
  103.  
  104.  
  105. HOW TO USE UNP:
  106. ---------------
  107. To get help type UNP on the command line without parameters or use the
  108. '-?' switch.  The first line of the help screen is a short line
  109. describing how to pass information to UNP.  Let's analyze this step by
  110. step.
  111.  
  112.  
  113. usage: UNP command [options] [d:][/path]Infile [[d:][/path]Outfile]
  114.  
  115.  
  116. * commands:
  117. e = expand compressed file (default)
  118.    This command expands the compressed file.  If you do not specify a
  119.    command, UNP will use this by default.  Using this command without a
  120.    wildcard will result in unpacking all files in the current directory.
  121.  
  122. c = convert to COM file
  123.    Some .EXE files can be converted to .COM files.  You can do this by
  124.    using this command.  You should only convert a file when you know
  125.    exactly what you are doing (see general info section).
  126.  
  127. i = info only
  128.    If you just want some information about the file, this is the command
  129.    to use.  UNP will show all information like the E command but will
  130.    will not decompress or write the file back.
  131.  
  132. l = load and save, no decompressing (only for EXE files).
  133.    This command loads an .EXE file but does not expand it.  It will be
  134.    written back just like a decompressed file would be written back.  This
  135.    is useful in case you want to remove an overlay or remove irrelevant
  136.    header data.
  137.  
  138. s = search for compressed files
  139.    When you use this command, only a small list of compressed files
  140.    matching the Infile wildcard will be generated.  The list created will
  141.    be in the form of "filename.ext (compressor)".
  142.  
  143. x = convert to EXE file
  144.    Some compressors can only compress .EXE files (like LZEXE).  With this
  145.    command you can convert a .COM file to an .EXE file.  The resulting
  146.    file will be written back with an .EXE extension by default.
  147.  
  148.  
  149. * options:
  150. -? = help (this screen)
  151.    For a list of UNP commands or options use this switch.  Any other
  152.    switch or command used on the same line will be ignored.
  153.  
  154. -a = automatic retry
  155.    Some files have been altered more than once.  This switch will make
  156.    UNP to process the file again when it was changed.  Useful when you
  157.    want to uncompress a file which also has been Immunized by CPAV.
  158.  
  159. -b = make backup .BAK file of original
  160.    If you want to keep a backup of your original file (very wise) use this
  161.    switch.  The original file will be renamed to a file with a .BAK
  162.    extension.
  163.  
  164. -c = ask for confirmation before decompressing
  165.    This will force UNP to ask you if you want to decompress the file each
  166.    time it has found a new compressed file.
  167.  
  168. -h = remove irrelevant header data
  169.    Most linkers add useless data to the .EXE header.  This switch removes
  170.    all such useless information, thus shrinking the header size.
  171.  
  172. -i = do not intercept INT 21h calls
  173.    By default UNP watches the DOS interrupt (21h) to check if the program
  174.    is running as expected.  Any unexpected call to INT 21h will make UNP
  175.    abort the process.  If you have any weird TSRs resident you might have
  176.    to use this switch.  I had to use it while debugging with Turbo
  177.    Debugger.
  178.  
  179. -k = pklite signature; - = don't add, + = add always, ? = ask
  180.    With this switch you can handle the pklite signature.  There are 3
  181.    possibilities :
  182.    -k- = the pklite signature will not be added, this will also be the
  183.      case if you only use -k (to stay dislite compatible)
  184.    -k+ = always add the pklite signature, this is the default of UNP so
  185.      you can just as well leave the -k switch away if you want this
  186.    -k? = when you use this, UNP will ask you each time it has found a
  187.      signature (like UNP V3.01 or earlier did)
  188.  
  189. -l = allways use loadfix
  190.    Starting with V3.12, UNP will not fill the first 64k of base memory.
  191.    (this allows larger files to be processed)  When UNP detects a file
  192.    which does requires such a loadfix, it will reload the program with the
  193.    first 64k allocated.  If you are planning to unpack several EXEPACKed
  194.    files you might want to use this switch to avoid reloading.  This
  195.    switch can only improve UNP's processing speed, it does not add
  196.    anything new.
  197.  
  198. -o = overwrite output file if it exists
  199.    If you want to have the destination file overwritten, you can avoid
  200.    the question for permission by specifying this switch on the command
  201.    line.
  202.  
  203. -p = align header data on a page
  204.    It is said that .EXE files with a header size that is a multiple of
  205.    512 bytes load faster (this could make sense since a sector is also
  206.    512 bytes).  This switch will expand the header to the nearest
  207.    multiple of 512 bytes.
  208.  
  209. -r = remove overlay data
  210.    If something is appended to an .EXE it is called an overlay.  This
  211.    switch will let the file size of the outfile be the same as the load
  212.    image.  So anything that was appended to the file will be thrown away.
  213.    An overlay can be used for all kinds of data, so removing this can
  214.    result in throwing away something useful.
  215.  
  216. -u = update file time/date to current time/date
  217.    By default UNP sets the time/date of the destination file to the same
  218.    time/date as the original source file.  If you want to have it updated
  219.    to the current time/date use this switch
  220.  
  221. -v = verbose
  222.    When you use this switch UNP will give you some additional information.
  223.    I added this switch for debugging purposes.
  224.  
  225.  
  226. *[d:][/path]Infile
  227.    The wildcard UNP uses for selecting the files it will process can be
  228.    found as follows:
  229.    if you have specified a command but no Infile the wildcard '*.*' will
  230.    be used.  If you have specified an Infile ofcourse this will be used
  231.    except for wildcards without an extension; those will get '.*' appended
  232.    and a flag will be set to select only .COM and .EXE files.  If your
  233.    Infile ends with a '\', '*.*' will be appended.
  234.  
  235.  
  236. *[[d:][/path]Outfile]
  237.    The destination file is optional. If you don't specify one, the source
  238.    file will be overwritten.  You cannot use wildcards in this.  Also, you
  239.    should not specify a destination file when you want to decompress more
  240.    than one file.
  241.  
  242.  
  243.  
  244. UNP IN ACTION:
  245. --------------
  246. When you execute UNP you can get several lines of information. Following
  247. is an explanation of what those lines mean:
  248.  
  249.  
  250. processing file : [D:][PATH\]FILENAME.EXT
  251.  
  252.    This shows the name of the file being processed as specified on the
  253.    command line.
  254.  
  255.  
  256. file size       : X
  257.  
  258.    The file size reported by DOS will be shown here.
  259.  
  260.  
  261. file structure  :
  262.  
  263.    UNP recognizes 4 file structures:
  264.    - executable (EXE)
  265.       If the file starts with the 'MZ' or 'ZM' signature and does not
  266.       contain the 'NE' signature then this structure is assumed.  With EXE
  267.       files there are two options UNP recognizes:
  268.       - convertible
  269.          The file can be converted to a COM file structure.
  270.       - loads into high memory
  271.      The program is loaded as high as possible in the allocated memory
  272.          block (this requires some other loading routines).
  273.  
  274.    - Windows or OS/2 1.x new executable
  275.       The file starts with the 'MZ' or 'ZM' signature and contains the
  276.       'NE' signature.
  277.  
  278.    - data file
  279.       The file does not contain the 'MZ' or 'ZM' signature but is too
  280.       large to be a COM file.
  281.  
  282.    - binary (COM)
  283.       This is shown in all other cases.
  284.  
  285.  
  286. EXE part sizes  : header X bytes, code Y bytes, overlay Z bytes
  287.  
  288.    Of course you will only get this line if you are processing an EXE file.
  289.    This shows how the file is built up.  If you add X Y and Z you should
  290.    get the file size reported by DOS.
  291.  
  292.  
  293. processed with  :
  294.  
  295.    If UNP recognizes some program's work in the file, it will try to tell
  296.    you what program it recognizes and when possible what version of that
  297.    program.  If UNP does not really know what program has changed your
  298.    file but recognizes some programs work then that programs name will be
  299.    displayed between brackets (e.g. [EXEPACK]).  If you have got such a
  300.    file then there are two possibilities, UNP knows about this program but
  301.    it is just unsure about the name/version or UNP doesn't know about it
  302.    at all.  To find out if UNP knows about it, use the -v switch on this
  303.    program.  If you got a message about breakpoints (see MESSAGES) then
  304.    UNP doesn't know this routine, I appreciate it if you would send me
  305.    that program or tell me where to find it.
  306.  
  307.  
  308. action          :
  309.    UNP not only decompress files it has the ability to do other
  310.    things as well.  There can only be one action performed at a time.
  311.    This is a list of actions UNP reports:
  312.  
  313.    - decompressing... done
  314.       This is the decompression action, probably the most used action.
  315.  
  316.    - removing immunize code... done
  317.       When a file has been immunized with Central Point Anti-Virus, a
  318.       piece of code is added to the file.  UNP has the ability to remove
  319.       this code.
  320.  
  321.    - removing scrambling... done
  322.       UNP recognizes a few scrambling routines. When you see this message
  323.       you have got a program which contains one.
  324.  
  325.    - removing 'XX' signature
  326.       Starting with UNP V3.02, the PKLITE signature added to fake PKLITE
  327.       decompression can be removed.  This message will be shown if UNP has
  328.       found a removable signature and is trying to remove it.
  329.  
  330.    - converting to EXE file structure
  331.       The file will be converted to one with an .EXE file structure
  332.  
  333.    - converting to COM file structure
  334.       The file will be converted to one with an .COM file structure
  335.  
  336.  
  337. new size        : X
  338.  
  339.    When the file has been written back UNP reports the new file size to
  340.    you in this line.
  341.  
  342.  
  343. All other messages are explained in the section below.
  344.  
  345.  
  346.  
  347. MESSAGES:
  348. ---------
  349. UNP has 6 kinds of messages other than the usual information it can display:
  350.  
  351. * Questions.  Although I tried to make this program as smart as possible,
  352.   it still can't read minds and things like that.  So sometimes it will
  353.   ask you for something it wants to know.
  354.  
  355. Add 'pk'/'PK' signature to fake PKLITE decompression (y/n)?
  356.    This question will only appear if you use -k? on the command line.
  357.    Answering 'Y' to this question will add 14 bytes of code that fakes
  358.    PKLITE decompression.  The correct signature will be displayed and used
  359.    automatically ('pk' for V1.20 and others 'PK').
  360.  
  361. File FILENAME.EXT already exists.  Overwrite (y/n)?
  362.    The filename that UNP wants to write the resulting file to already
  363.    exists.  If you haven't specified the -o switch it will ask if it can
  364.    overwrite it.  Answering 'N' will proceed to the next file.
  365.  
  366. Program is protected, please enter password:
  367.    This question will appear when you are trying to decompress a program
  368.    which is compressed with TINYPROG with the password option.  You are
  369.    asked to type the password used.  This is not to verify whether you are
  370.    the rightful owner or not, but I just couldn't find a way around it.
  371.  
  372. Remove this routine from file (y/n)?
  373.    You have specified the -c switch and UNP has found a file it
  374.    recognizes as being processed with something.  Now it wants to know
  375.    if you like to remove the routine it has found.
  376.  
  377.  
  378. * INFO messages, these messages are only displayed when you have specified
  379.    the -V switch.  I've added them for debugging purposes.
  380.  
  381. INFO- Attempting to increase available memory for decompression.
  382.    This only shows up if you are trying to decompress PKLITE V1.00· (2).
  383.    When this happens, UNP uses some other strategy to calculate the memory
  384.    it allocates for decompressing.  By default UNP only allocates as less
  385.    memory as possible.  This strategy allocates 15/16 of the memory block
  386.    the program is currently loaded in.
  387.  
  388. INFO - command line = " ... "
  389.    This message shows how UNP has interpreted the things you typed on the
  390.    command line.  Great for debugging purposes!
  391.  
  392. INFO - First 64K of base memory has been fully allocated.
  393.    Some compressors use the segment below their own code.  Since it is
  394.    possible to load the operating system in upper/high memory there might
  395.    not be a complete segment available.  This message tells you there has
  396.    been memory allocated to ensure there is a complete segment below.
  397.    Note that this is the same thing that the program LOADFIX.COM supplied
  398.    with MS-DOS 5 does.
  399.  
  400. INFO - Overlay copy overruled, overlay not copied to destination file.
  401.    Normally UNP copies any overlay found on the original program to the
  402.    destination.  This is one of the exceptions.  CRUNCHER and SEA-AXE use
  403.    the overlay to store the compressed data for the file.  Copying the
  404.    overlay would result in a program containing twice its code, once in
  405.    compressed and once in the decompressed form.  This message indicates
  406.    that UNP has removed the overlay to avoid this problem.
  407.  
  408. INFO - Program loaded at XXXXh, largest free memory block: X bytes.
  409.    Pretty obvious.  The address where UNP is loaded is displayed along
  410.    with the largest block it can allocate.
  411.  
  412. INFO - Unknown program, breakpoints are : GS-XXXX, GI-XXXX, QT-XXXX.
  413.    Some routines that I am using are a bit better than the rest because
  414.    they try to determine offsets rather than comparing signatures.  If
  415.    such a smart routine has found breakpoints but can not find any
  416.    identification string belonging to these, this message is shown with
  417.    the breakpoints it has found.
  418.  
  419. INFO - Using FILENAME.EXT as temp file.
  420.    UNP tells you what it will be using as temporary file.  This name is
  421.    composed of the TEMP variable and the default temporary name.
  422.  
  423. INFO - Wildcard matches X filename(s), stored at XXXXh.
  424.    This tells you how many filenames UNP has found that match the wildcard
  425.    and where it has stored the names found.
  426.  
  427.  
  428. * WARNING messages.  UNP sometimes takes actions the user should be
  429.    notified of.  In those cases a warning message is displayed.
  430.  
  431. WARNING - Adding 'XX' signature to fake PKLITE decompression.
  432.    The program you are decompressing was compressed by PKLITE V1.14 or
  433.    higher with extra compression.  By default UNP adds 14 bytes of code
  434.    that will let the program think it is still compressed.  To remove
  435.    this piece of code you can use UNP E on it.
  436.  
  437. WARNING - File adds 'XX' signature (added by UNP V3.01 or earlier).
  438. WARNING - File adds 'XX' signature (added by DISLITE V1.15 or higher).
  439.    Your file has already been decompressed and has the signature to fake
  440.    PKLITE decompression appended.  This signature is ignored to continue
  441.    the search for more decompression routines.
  442.    All signatures added by UNP V3.02 or higher and the DISLITE signatures
  443.    which do not use a relocation item will act as a decompression routine,
  444.    so UNP E will remove them.
  445.  
  446. WARNING - File already has .BAK extension, no backup created.
  447.    UNP has just unpacked a .BAK file and you have specified the -B switch.
  448.    Creating a .BAK file of a file which already has a .BAK extension is
  449.    impossible so the source file will be overwritten and there will be no
  450.    backup created.
  451.  
  452. WARNING - File loaded too low in memory to decompress, reloading.
  453.    Files compressed with EXEPACK require one segment (64k) below their own
  454.    code to successfully decompress.  When there is no complete segment
  455.    available, UNP displays this message and reloads the file higher in
  456.    memory. (also see msg. 'INFO - First 64K...' and -L switch)
  457.  
  458. WARNING - Infile and Outfile are same, Outfile ignored.
  459.    You have specified the file twice on the command line, meaning that the
  460.    destination file is the same as the source file.  Since this is the
  461.    default situation the second name is ignored.
  462.  
  463. WARNING - Invalid or missing stored header information.
  464.    Normally the compressor used on the program you are trying to
  465.    decompress stores a part of the original header.  UNP has compared
  466.    this information with the data it thinks it should be and has come to
  467.    the conclusion that these mismatch.  If this happens the default UNP
  468.    header will be used.
  469.  
  470. WARNING - Missing last byte, unable to completely restore file.
  471.    The SHRINK compressor does not correctly compresses files containing
  472.    all 256 characters.  When this has happened the last byte of the
  473.    program is thrown away.  It's not possible to get that byte back so the
  474.    decompressed file is mismatching in 1 or more bytes at the end with the
  475.    original file.
  476.  
  477. WARNING - Outfile specified, -B option ignored.
  478.    You have specified a destination file and the -B switch.  Because I see
  479.    no sense in this, the -B option will then be ignored.
  480.  
  481.  
  482. * ERROR messages.  In some cases the desired action cannot be performed or
  483.   has failed.  These messages tell you why this is so and what has
  484.   happened.  UNP will continue with the next file.
  485.  
  486. ERROR - Cannot handle this decompression routine.
  487.    UNP has recognized the way your program has been compressed but is not
  488.    (yet) able to decompress it.
  489.  
  490. ERROR - File already is a .COM file.
  491.    You are trying to convert a .COM file to a .COM file.
  492.  
  493. ERROR - File already is an .EXE file.
  494.    You are trying to convert a .EXE file to a .EXE file.
  495.  
  496. ERROR - File contains overlay.
  497.    One thing you can't have with .COM files is overlays.  If you want to
  498.    convert anyway first remove the overlay.
  499.  
  500. ERROR - File has invalid entrypoint (CS:IP <> FFF0h:0100h)
  501.    To have a converted .EXE file start at the right place, the programs
  502.    initial CS:IP should point to FFF0:0100h.  If this is not true you get
  503.    this error message.
  504.  
  505. ERROR - File has relocation items.
  506.    You tried to convert an .EXE file with relocation items to a .COM file.
  507.    A .COM file cannot handle relocation items.
  508.  
  509. ERROR - File is too large for .COM file.
  510.    The maximum size for a .COM file is much shorter than the one for an
  511.    .EXE file.  So it can happen that the .EXE file is too large to be
  512.    converted to a .COM file.
  513.  
  514. ERROR - Unexpected call to INT 21h, decompression failed.
  515.    When decompressing, UNP passes control to the program.  When it does
  516.    not get control back it is very likely that an interrupt 21h will take
  517.    place sooner or later (INT 21h is the most important interrupt).  UNP
  518.    checks for unexpected calls to this interrupt to ensure it's still in
  519.    control.  To disable this checking use the -i switch.
  520.  
  521.  
  522. * DOS ERROR messages, these errors are things UNP tried to do but for some
  523.   reason your Operating System didn't allowed it.  UNP will quit and will
  524.   have the I/O ERROR exit code.  If you find any use for UNP you are
  525.   probably an experienced DOS user and know how to solve the problem so I
  526.   will only give you the messages.
  527.  
  528. DOS ERROR - unable to create file
  529.  
  530. DOS ERROR - unable to open file
  531.  
  532. DOS ERROR - unable to read from file
  533.  
  534. DOS ERROR - unable to write to file
  535.  
  536.  
  537. * FATAL ERROR messages.  When one of those messages appear something is
  538.   really wrong and UNP cannot continue its work.  It will quit and
  539.   probably have an exitcode for the situation occurred.
  540.  
  541. FATAL ERROR - Decompressing many files into one.
  542.    You have specified a destination file, but there is more than one
  543.    source file.
  544.  
  545. FATAL ERROR - Divide overflow (INT 00h) generated by CPU.
  546.    This means that an invalid DIV instruction has been executed.
  547.    Normally this will cause DOS to terminate the program.  UNP hooks this
  548.    so it can set the interrupt's pointers back before the program quits.
  549.  
  550. FATAL ERROR - No files found matching FILENAME.EXT
  551.    UNP could not find any files to decompress.
  552.  
  553. FATAL ERROR - Not enough memory ...
  554.    UNP tried to allocated some memory but it got an error back.  This
  555.    message tells you what it needed the memory for.
  556.  
  557. FATAL ERROR - Output path/file must not contain '*' or '?'.
  558.    You have used wildcards in the destination file.  This is not allowed.
  559.  
  560. FATAL ERROR - User abort, ^C/^Break pressed (INT 23h).
  561.    Interrupt 23h is called when DOS detects that Ctrl-C or Ctrl-Break is
  562.    pressed.  UNP hooks this to be able to restore the interrupts it uses.
  563.  
  564.  
  565. WHAT UNP CAN HANDLE:
  566. --------------------
  567. Of course you would like to know what programs UNP can currently handle.
  568.  
  569. Well, here is a list of routines that UNP V3.15 is known to remove:
  570.  
  571. * routines found in .COM files
  572. CENTRAL POINT ANTI-VIRUS V1             ; immunize code
  573. COMPACK V4.4
  574. COMPACK V4.5
  575. DIET V1.00
  576. DIET V1.02b or V1.10a
  577. DIET V1.20
  578. ICE V1.00
  579. PKLITE V1.00·
  580. PKLITE V1.03
  581. PKLITE V1.05
  582. PKLITE V1.12
  583. PKLITE V1.13
  584. PKLITE V1.14
  585. PKLITE V1.15
  586. PROTECT! COM/EXE V1.0 or V1.1
  587. PROTECT! COM/EXE V2.0
  588. PROTECT! COM/EXE V3.0
  589. PROTECT! COM/EXE V3.1
  590. PRO-PACK V2.08, emphasis on packed size
  591. PRO-PACK V2.08, emphasis on packed size, locked
  592. PRO-PACK V2.08, emphasis on unpacking speed
  593. PRO-PACK V2.08, emphasis on unpacking speed, locked
  594. SCRNCH V1.00
  595. SHRINK V1.00
  596.  
  597.  
  598. * routines found in .EXE files
  599. CENTRAL POINT ANTI-VIRUS V1             ; immunize code
  600. COMPACK V4.4
  601. COMPACK V4.5
  602. CRUNCHER V1.0                ; +.COM files
  603. DIET V1.01
  604. DIET V1.00d                ; small & large, with & without items
  605. DIET V1.02b, V1.10a or V1.20            ; small & large, with & without items
  606. DIET V1.44                              ; small, large + .COM files
  607. DIET V1.44, choose great SFX routine    ; small, large + .COM files
  608. DIET V1.45f                             ; small, large + .COM files
  609. DIET V1.45f choose great SFX routine    ; small, large + .COM files
  610. DISLITE V1.15 or higher                 ; small signatures (no items in sig)
  611. EXEPACK V4.00
  612. EXEPACK V4.05 or V4.06
  613. EXEPACK patched with EXPAKFIX V1.0
  614. LINK /EXEPACK V3.60 or V3.64
  615. LINK /EXEPACK V5.31.009
  616. KVETCH V1.02·
  617. LZEXE V0.90
  618. LZEXE V0.91 or V1.00a
  619. PGMPAK V0.14
  620. PKLITE V1.00· 0,1,2
  621. PKLITE V1.03  0,1,2,3
  622. PKLITE V1.05  0,1,2
  623. PKLITE V1.10  3
  624. PKLITE V1.12  0,1,2,3
  625. PKLITE V1.13  0,1,2,3
  626. PKLITE V1.14  0,1,2,3
  627. PKLITE V1.15  0,1,2,3
  628. PKLITE V1.20  1
  629. PKLITE V1.20  1,3
  630. PRO-PACK V2.08, emphasis on packed size
  631. PRO-PACK V2.08, emphasis on packed size, locked
  632. PRO-PACK V2.08, emphasis on unpacking speed
  633. PRO-PACK V2.08, emphasis on unpacking speed, locked
  634. PROTECT! COM/EXE V1.0
  635. PROTECT! COM/EXE V1.1
  636. PROTECT! COM/EXE V2.0
  637. PROTECT! COM/EXE V3.0
  638. PROTECT! COM/EXE V3.1
  639. SEA-AXE
  640. TINYPROG V1.0
  641. TINYPROG V3.3
  642. TINYPROG V3.6
  643. TINYPROG V3.8
  644. TINYPROG V3.9
  645. UNP V3.02 or higher                ; fake PKLITE signature
  646.  
  647. (Sorry, I lost count.  Who cares about statistics anyway?)
  648.  
  649.  
  650.  
  651. NOTES ON COMPRESSORS:
  652. ---------------------
  653. LZEXE V1.00a:
  654.    Several people have contacted me about this one.  This utility is the
  655.    same as LZEXE V0.91, except for some minor options.  It is offered
  656.    to the readers of INFO PC by IS2 France Diffusion (at least that's what
  657.    I think the text says).  Unfortunately I don't know where it's
  658.    available.
  659.  
  660. PGMPAK V0.14:
  661.    When you compress a file with this compressor, an overlay of 12 bytes
  662.    will be added.  To be exactly, the name and version number is added.
  663.    In this case: "PGMPAK V0.14".  This overlay is not automatically removed
  664.    when you decompress it.  To remove it, use the -R switch.
  665.  
  666. PKLITE:
  667.    PKLITE V1.00· seems to have a bug in it.  While testing it, I found
  668.    that with some files an overlay of 512 bytes was added.  Needless to
  669.    say that when this happened the compressed file did not run correctly.
  670.    Since UNP writes the file back as it would be run in memory the file
  671.    decompressed with UNP wouldn't run either.  However extracting with
  672.    PKLITE -X resulted in the original file!  Since this version of pklite
  673.    is hardly used and even more unlikely is that someone wants to
  674.    decompress such a file I didn't bother to write a new routine that
  675.    fixes that bug.
  676.  
  677.    PKLITE V1.14 and up (according to the documentation) add the 'PK'
  678.    signature with extra compressed files to let the program check if it is
  679.    still compressed with PKLITE.  To avoid that the program detects it has
  680.    been decompressed UNP adds by default 14 bytes of code that places the
  681.    signature in the PSP like PKLITE does.
  682.  
  683. SCRUNCH:
  684.    In most cases, UNPs decompression routines are created when using
  685.    test files.  Unfortunately I don't have a copy of scrunch so this is
  686.    a bit difficult to ensure it works.  Of course there are other
  687.    decompression routines built the same way but the file I received
  688.    compressed with this compressor looked like it was converted to a
  689.    .COM file before it was compressed (it contained relocation items),
  690.    but this conversion could just as well be a part of the scrunch
  691.    compression.  If I receive more files compressed with this one I will
  692.    improve and adjust the routine when needed.
  693.  
  694. SHRINK V1.00:
  695.    This compressor is a bad implementation of Run Length compression.  It
  696.    contains two bugs one of which is in the decompression routine.  The
  697.    bugs are triggered when the file to be compressed contains all 256
  698.    bytes.  I have written my own decompression routine for this compressor
  699.    that is able to avoid one bug.  The other bug is that the last byte of
  700.    the compressed file is thrown away making it impossible to fully
  701.    rebuild the file.  If this is the case, UNP will display a warning.  It
  702.    is always better to decompress it, even if the last byte is missing.
  703.  
  704.  
  705.  
  706.  
  707. ERRORLEVEL VALUES:
  708. ------------------
  709.   0  no error occurred
  710.   1  help text is displayed
  711.   2  no files found to process
  712.   3  decompressing many files into 1 /  Outfile contains wildcards
  713.   4  some I/O error occurred
  714.   5  could not allocate enough memory
  715.   6  CPU generated divide overflow
  716.   7  user pressed ^C or ^Break
  717.  
  718.  
  719.  
  720. WHERE TO FIND UNP:
  721. ------------------
  722. Latest version of unp will be uploaded to Garbo (garbo.uwasa.fi) as long
  723. as I have access to Internet. Also this BBS below will have the latest
  724. version.
  725.  
  726. MegaVolt BBS (support site of unp)
  727.    tel. +31-30-211143
  728.    speeds up to 14k4
  729.  
  730.  
  731.  
  732.  
  733. HOW TO REGISTER:
  734. ----------------
  735. I have decided to release UNP as freewhere (cardware).  You are allowed to
  736. test this program freely for a period of two weeks.  If you decide to
  737. continue using UNP you are expected to let me (the author) know where you
  738. are using my program.  To do this, send a postcard with some picture of
  739. your city or something in the neighbourhood to the adress found at the end
  740. of the document.  I would appreciate if you would mention your full name
  741. and version you are using.  Ofcourse if you have got any suggestions you
  742. can put them on it as well!
  743.  
  744. Please don't feel offended by all of this, I just want to how much people
  745. find any use for UNP.  And hey, it beats sending money!
  746.  
  747.  
  748.  
  749.  
  750.  
  751. CONTACTING ME:
  752. --------------
  753.  
  754. My address:                       E-Mail (atleast valid till June-95):
  755.   Ben Castricum                     benc@solist.htsa.aha.nl
  756.   Van Loenenlaan 10
  757.   1945 TX  Beverwijk
  758.   The Netherlands
  759.  
  760.  
  761. *** end of UNP V3.31 documentation ***
  762.